package org.car.world.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.car.world.core.entily.OrderTable;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

@Mapper
public interface OrderTableMapper {


    int deleteByPrimaryKey(Integer orderId);


    int insert(OrderTable record);


    OrderTable selectByPrimaryKey(Integer orderId);

    List<OrderTable> selectByPrimaryKeyList(Integer merchantsId);


    List<OrderTable> selectByPrimaryKeyListNew(Integer merchantsId);

    /**
     * @param @param  merchantsId
     * @param @return 参数
     * @return List<OrderTable>    返回类型
     * @throws
     * @Title: selectByPrimaryKeyListSta
     * @Description: 根据商家查找订单
     */
    List<OrderTable> selectByPrimaryKeyListSta(Integer merchantsId);

    int selectByPrimaryKeyListStaCount(Integer merchantsId);

    List<OrderTable> selectByPrimaryKeyListLimit(@Param(value = "merchantsId") Integer merchantsId, @Param(value = "form") Integer form, @Param(value = "size") Integer size);


    List<OrderTable> selectByPrimaryKeyDateListLimit(@Param(value = "merchantsId") Integer merchantsId, @Param(value = "orderdate") String orderdate, @Param(value = "form") Integer form, @Param(value = "size") Integer size);

    List<OrderTable> selectByPrimaryKeyDateList(@Param(value = "merchantsId") Integer merchantsId, @Param(value = "orderdate") String orderdate);


    List<OrderTable> selectAll();

    int selectByPrimaryKeyListCount(Integer merchantsId);

    int selectByPrimaryListOkCount(Integer merchantsId);

    int selectByPrimaryKeyDateListCount(@Param(value = "merchantsId") Integer merchantsId, @Param(value = "orderdate") String orderdate);

    int updateByPrimaryKey(OrderTable record);

    List<OrderTable> selectByPrimaryKeyStaList(Integer merchantsId);

    int selectByPrimaryListStaCount(Integer merchantsId);

}